//
//  BookShelfVC.m
//  StockpdfReading
//
//  Created by 于洪东 on 2017/6/17.
//  Copyright © 2017年 上海LOL信息技术服务有限公司. All rights reserved.
//

#import "BookShelfVC.h"

@interface BookShelfVC ()

@property (nonatomic,strong) UIImageView *imageview;

@end

@implementation BookShelfVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view addSubview:self.imageview];
    
//    AVObject *object = objects[0];
//    
//    NSString *bookurl = object[@"bookurl"];
//    NSString *bookname = object[@"bookname"];
//    AVFile *file = object[@"bookImage"];
//    
//    DEF_DEBUG(@"%@====%@====%@",file.url,bookurl,bookname);
//    
//    self.imageview.yy_imageURL = [NSURL URLWithString:file.url];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [[Interface shareInstance]downloadWithBaseurl:@"http://pdfyuedu" urlstring:@"-1253868679.costj.myqcloud.com/Reader.pdf" progress:^(NSString *downloadProgress) {
        DEF_DEBUG(@"%@",downloadProgress);
    } finished:^(NSURLResponse *response, NSString *filePath, NSString *error) {
        DEF_DEBUG(@"%@====%@====%@",response,filePath,error);
    }];
}



-(UIImageView *)imageview{
    if (_imageview == nil) {
        _imageview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 100,80, 100)];
    }
    return _imageview;
}




@end
